#ifndef TABLE_HANDLER_H
#define TABLE_HANDLER_H

#include <string>

struct sqlite3;

class TableHandler
{
public:
	TableHandler(void);
	virtual ~TableHandler(void);

public:
	int Initialize(sqlite3* pSqlite, const char* pTableName);

	int Translate(const char* pText, char** pResult) const;

	int AppendOriginalText(int nFormID, const char* pOriginalName);
	int AppendTranslatedText(int nFormID, const char* pTranslatedName);

protected:
	int CreateTable(void);

private:
	sqlite3*		m_pSqlite;
	std::string		m_TableName;
};

#endif	// TABLE_HANDLER_H
